//
// Created by Administrator on 24-8-10.
//
/**
 * 火焰传感器
 * 检测火焰 报警装置
 */
#ifndef CPPROJ_FLAME_H
#define CPPROJ_FLAME_H
#include "main.h"

/**
 * 状态
 */
enum STATE{
    DANGER=0,
    SAFETY=1
};

class Flame {

public:
    Flame(GPIO_TypeDef *port,uint16_t pin);

    STATE FlameCheck();

private:
    //火焰传感器
    GPIO_TypeDef * m_Flame_Port;
    //火焰传感器pin 口
    uint16_t  m_Flame_Pin;
    //
    STATE m_stat;
};


#endif //CPPROJ_FLAME_H
